<template>
  <div class="top">
    <span class="iconfont iconnew"></span>
    <div class="search" @click="$router.push('/search')">
      <span class="iconfont iconsearch"></span>
      搜索新闻
    </div>
    <span class="iconfont iconwode" @click="$router.push('/personal')"></span>
  </div>
</template>

<script>
export default {};
</script>

<style lang="less" scoped>
.top {
  display: flex;
  align-items: center;
  height: 49/360 * 100vw;
  background-color: #f00;
  padding: 0 10/360 * 100vw;
  color: #fff;
  .search {
    flex: 1;
    margin: 0 20/360 * 100vw;
    background-color: #ffffff7f;
    height: 34/360 * 100vw;
    line-height: 34/360 * 100vw;
    text-align: center;
    border-radius: 17/360 * 100vw;
    font-size: 14/360 * 100vw;
    .iconsearch {
      font-size: 16/360 * 100vw;
    }
  }
  .iconnew {
    font-size: 54/360 * 100vw;
  }
  .iconwode {
    margin: 0 10/360 * 100vw;
    font-size: 28/360 * 100vw;
    color: #ffffff8c;
  }
}
</style>
